<!DOCTYPE HTML>
<title>Download button should not appear for MSE videos.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="../../media-resources/media-controls.js"></script>
<video controls></video>
<script>

async_test(function(t) {
  var v = document.querySelector('video');
  v.src = "blob:http://foo.bar.com/12345678";

  var controlID = "-internal-media-controls-download-button";
  var downloadButton = mediaControlsElement(internals.shadowRoot(v).firstChild, controlID);
  setTimeout(t.step_func_done(function() {
    assert_equals(getComputedStyle(downloadButton).display, "none");
  }), 0);
});
</script>
